﻿using System;
using System.ComponentModel.DataAnnotations;

namespace assignment1
{
    class fuction
    {
        public void q3getPrime(int[] primes)
        {
            int pop = 0; ;
            bool[] isp = new bool[100];
            for (int i = 2; i < 100; i++)
            {
                if (!isp[i]) primes[pop++] = i;
                for (int j = 0; j < pop && i * primes[j] < 100; j++)
                {
                    isp[i * primes[j]] = true;
                    if (i % primes[j] == 0) break;
                }
            }
        }
    }
    class ExecuteFunction
    {
        static void Main(string[] args)
        {
            fuction f = new fuction();


            //q3
            int[] arr = new int[100];
            f.q3getPrime(arr);
            for (int i = 0; i < 100; i++)
            {
                if (arr[i] == 0) break;
                Console.WriteLine(arr[i]);
            }

        }
    }
}
